<template>
	<view class="container">
		<view class="header-image">
			<image src="../../static/logo.jpg" mode="widthFix" style="height: 40px;"></image>
		</view>
		<view class="header-text">
			<text>家帮办</text>
		</view>
		<view class="moto">尊敬的{{currentUser}}用户，我们将秉承客户至上的理念，采用专业严谨的方法，为您提供优质可靠的服务。</view>
		<view class="bottom" style="text-align: center;">
			<button style="margin-bottom: 20px;" @click="start" type="primary">开始</button>
			<text style="font-size: 24rpx;">本小程序所有计算结果最终解释权归XXXX所有。</text>
		</view>
	</view>
</template>

<script>
	export default {
    data() {
			return {
        name: 'home',
        currentUser: '',
				href: 'https://uniapp.dcloud.io/component/README?id=uniui',
			}
		},
		created() {
			// this.curentUser
			let that = this
			uni.getStorage({
				key: 'currentUser',
				success(res) {
					console.log(res)
					that.currentUser = res.data.nickName
				}
			})
		},
		methods: {
			start() {
				// debugger
				uni.navigateTo({
					url: '/pages/100syr/100syr',
					success() {
						console.log('succ')
					},
					fail() {
						console.log('failed')
					}
				})
			}

		}
	}
</script>

<style>
	.header-image {
		display: flex;
		justify-content: flex-start;
	}

	.header-text {
		padding: 20px;
		text-align: center;
		font-size: 30px;
		font-weight: 700;
	}

	.moto {
		font-size: 30rpx;
	}

	page {
		height: 100% !important;
	}
</style>
